<template>
	<view class="_user_item">
		<view class="u-flex u-flex-self-start u-p-l-32 u-p-r-32 ">
			<up-avatar src="https://uview-plus.jiangruyi.com/uview-plus/album/1.jpg" size="120rpx"></up-avatar>
			<view class="u-m-l-24 u-flex-1">
				<view class="u-flex u-flex-between u-flex-items-center">
					<view class="f-s-16 f-w-b">{{ info.name }} ({{ info.phonenumber }})</view>
					<status-tag :status="1"></status-tag>
				</view>
				<!-- <view class="u-tips-color f-s-14 u-m-t-16">慈溪市成品工程管理有限公司</view> -->
				<view class="u-tips-color f-s-14 u-m-t-16">
						微信昵称<text class="u-m-l-18">{{ info.nickName }}</text>
				</view>
				<view class="u-tips-color f-s-14 u-m-t-16">登陆IP<text class="u-m-l-18">{{ info.loginIp }}</text></view>
				<view class="u-tips-color f-s-14 u-m-t-16">最后登录<text class="u-m-l-18">{{ info.loginDate }}</text></view>
			</view>
		</view>
		<up-line  margin="24rpx 0 "></up-line>
		<view class="u-flex u-flex-end u-flex-items-center u-p-l-32 u-p-r-32">
			<!-- <view class="u-m-r-24">
				<up-button text="删除" :customStyle="{
					width: '120rpx',
					height: '56rpx',
					border: '1rpx solid #E5E5E5',
					background: '#fff',
					borderRadius: '8rpx',
					fontSize: '28rpx',
					color: 'color: rgba(0,0,0,0.65)'
				}"></up-button>
			</view>
			<view class="u-m-r-24">
				<up-button text="编辑" :customStyle="{
					width: '120rpx',
					height: '56rpx',
					border: '1rpx solid #E5E5E5',
					background: '#fff',
					borderRadius: '8rpx',
					fontSize: '28rpx',
					color: 'color: rgba(0,0,0,0.65)'
				}"></up-button>
			</view> -->
			<view>
				<up-button text="详情" :customStyle="{
					width: '120rpx',
					height: '56rpx',
					background: '#1677FF',
					borderRadius: '8rpx',
					fontSize: '28rpx',
					color: '#FFFFFF'
				}" @click="toInfo" ></up-button>
			</view>
		</view>

	</view>
</template>

<script setup>
	import StatusTag from '@/components/common/StatusTag.vue';
	const props = defineProps({
		info: Object
	})
	
	
	const toInfo = ()=>{
		uni.navigateTo({
			url: `/subPackages/company/user_info?userId=${props.info.userId}&entID=${props.info.entID}`
		})
	}
	
</script>

<style lang="scss" scoped>
	._user_item {
		background: #FFFFFF;
		box-shadow: 0rpx 2rpx 20rpx 0rpx rgba(0, 0, 0, 0.05);
		border-radius: 16rpx;
		padding: 32rpx 0;
		margin-bottom: 24rpx;

		._title {
			min-width: 144rpx;
			width: 144rpx;
		}

	}
</style>